/**
 @author 迷途小羔羊
 2015.6.5
 */
module GYLite
{
	/**单选按钮组*/
	export class GYRadioGroup
	{
		private _selectedButton:GYRadioButton;
		public constructor()
		{var s = this;
		}
		/**设置此属性选中组内单选按钮*/
		public set selectedButton(val:GYRadioButton)
		{var s = this;
			if(val.radioGroup != this)
				return;
			if(s._selectedButton == val)
				return;
			if(s._selectedButton)
				s._selectedButton.selected = false;
			s._selectedButton = val;
			s._selectedButton.selected = true;
		}
		public get selectedButton():GYRadioButton
		{var s = this;
			return s._selectedButton;
		}
	}
}
